<template>
	<view class="container">
		<view class="basic-title">
			<view class="">
				填写您的基本资料
			</view>
			<view class="">
				开启星月桥寻爱的幸福之旅吧~
			</view>
		</view>
		<view class="basic-form">
			<view class="form-title">
				基本资料
			</view>
			<uv-form labelPosition="left" :model="form" :rules="rules" ref="form">
				<uv-form-item prop="userInfo.name" :customStyle="customStyle">
					<uv-input v-model="form.nick_name" border="none" placeholder="请输入昵称" type="text">
					</uv-input>
				</uv-form-item>
				<uv-form-item prop="userInfo.sex" @click="showSexSelect" :customStyle="customStyle">
					<uv-input v-model="form.sex" disabled disabledColor="#ffffff" placeholder="性别" border="none">
					</uv-input>
					<template v-slot:right>
						<uv-icon name="arrow-right"></uv-icon>
					</template>
				</uv-form-item>
				<uv-form-item prop="userInfo.sex" @click="showSexSelect" :customStyle="customStyle">
					<uv-input v-model="form.birthday" disabled disabledColor="#ffffff" placeholder="出生日期" border="none">
					</uv-input>
					<template v-slot:right>
						<uv-icon name="arrow-right" style="margin-right: 10rpx;"></uv-icon>
					</template>
				</uv-form-item>
				<uv-form-item prop="userInfo.sex" @click="showSexSelect" :customStyle="customStyle">
					<uv-input v-model="form.native_city_id" disabled disabledColor="#ffffff" placeholder="籍贯"
						border="none">
					</uv-input>
					<template v-slot:right>
						<uv-icon name="arrow-right" style="margin-right: 10rpx;"></uv-icon>
					</template>
				</uv-form-item>
				<uv-form-item prop="userInfo.sex" @click="showSexSelect" :customStyle="customStyle">
					<uv-input v-model="form.nation" disabled disabledColor="#ffffff" placeholder="民族" border="none">
					</uv-input>
					<template v-slot:right>
						<uv-icon name="arrow-right" style="margin-right: 10rpx;"></uv-icon>
					</template>
				</uv-form-item>
				<uv-form-item prop="userInfo.sex" @click="showSexSelect" :customStyle="customStyle">
					<uv-input v-model="form.height" disabled disabledColor="#ffffff" placeholder="身高" border="none">
					</uv-input>
					<template v-slot:right>
						<uv-icon name="arrow-right" style="margin-right: 10rpx;"></uv-icon>
					</template>
				</uv-form-item>
				<uv-form-item prop="userInfo.sex" @click="showSexSelect" :customStyle="customStyle">
					<uv-input v-model="form.weight" disabled disabledColor="#ffffff" placeholder="体重" border="none">
					</uv-input>
					<template v-slot:right>
						<uv-icon name="arrow-right" style="margin-right: 10rpx;"></uv-icon>
					</template>
				</uv-form-item>
				<uv-form-item prop="userInfo.sex" @click="showSexSelect" :customStyle="customStyle">
					<uv-input v-model="form.twelve_animal" disabled disabledColor="#ffffff" placeholder="属相"
						border="none">
					</uv-input>
				</uv-form-item>
				<uv-form-item prop="userInfo.sex" @click="showSexSelect" :customStyle="customStyle">
					<uv-input v-model="form.constellation" disabled disabledColor="#ffffff" placeholder="星座"
						border="none">
					</uv-input>
				</uv-form-item>
				<uv-form-item prop="userInfo.sex" @click="showSexSelect" :customStyle="customStyle">
					<uv-input v-model="form.blood" disabled disabledColor="#ffffff" placeholder="血型" border="none">
					</uv-input>
					<template v-slot:right>
						<uv-icon name="arrow-right" style="margin-right: 10rpx;"></uv-icon>
					</template>
				</uv-form-item>
				<uv-form-item prop="userInfo.sex" @click="showSexSelect" :customStyle="customStyle">
					<uv-input v-model="form.education" disabled disabledColor="#ffffff" placeholder="学历" border="none">
					</uv-input>
					<template v-slot:right>
						<uv-icon name="arrow-right" style="margin-right: 10rpx;"></uv-icon>
					</template>
				</uv-form-item>
				<uv-form-item prop="userInfo.sex" @click="showSexSelect" :customStyle="customStyle">
					<uv-input v-model="form.work_type" disabled disabledColor="#ffffff" placeholder="工作类型"
						border="none">
					</uv-input>
					<template v-slot:right>
						<uv-icon name="arrow-right" style="margin-right: 10rpx;"></uv-icon>
					</template>
				</uv-form-item>
				<uv-form-item prop="userInfo.sex" @click="showSexSelect" :customStyle="customStyle">
					<uv-input v-model="form.salary" disabled disabledColor="#ffffff" placeholder="月薪" border="none">
					</uv-input>
					<template v-slot:right>
						<uv-icon name="arrow-right" style="margin-right: 10rpx;"></uv-icon>
					</template>
				</uv-form-item>
				<uv-form-item prop="userInfo.sex" @click="showSexSelect" :customStyle="customStyle">
					<uv-input v-model="form.home_city_id" disabled disabledColor="#ffffff" placeholder="现居住地"
						border="none">
					</uv-input>
					<template v-slot:right>
						<uv-icon name="arrow-right" style="margin-right: 10rpx;"></uv-icon>
					</template>
				</uv-form-item>
				<uv-form-item prop="userInfo.sex" @click="showSexSelect" :customStyle="customStyle">
					<uv-input v-model="form.resident_city_id" disabled disabledColor="#ffffff" placeholder="户口所在地"
						border="none">
					</uv-input>
					<template v-slot:right>
						<uv-icon name="arrow-right" style="margin-right: 10rpx;"></uv-icon>
					</template>
				</uv-form-item>
				<uv-form-item prop="userInfo.sex" @click="showSexSelect" :customStyle="customStyle">
					<uv-input v-model="form.marrage" disabled disabledColor="#ffffff" placeholder="婚姻状况" border="none">
					</uv-input>
					<template v-slot:right>
						<uv-icon name="arrow-right" style="margin-right: 10rpx;"></uv-icon>
					</template>
				</uv-form-item>
				<uv-form-item prop="userInfo.sex" @click="showSexSelect" :customStyle="customStyle">
					<uv-input v-model="form.children" disabled disabledColor="#ffffff" placeholder="有无子女" border="none">
					</uv-input>
					<template v-slot:right>
						<uv-icon name="arrow-right" style="margin-right: 10rpx;"></uv-icon>
					</template>
				</uv-form-item>
				<uv-form-item prop="userInfo.sex" @click="showSexSelect" :customStyle="customStyle">
					<uv-input v-model="form.children_with" disabled disabledColor="#ffffff" placeholder="孩子和谁一起生活"
						border="none">
					</uv-input>
					<template v-slot:right>
						<uv-icon name="arrow-right" style="margin-right: 10rpx;"></uv-icon>
					</template>
				</uv-form-item>
			</uv-form>
			<button class="basic-btns" @click="toEdu">
				<view class="btns-title">
					下一步/详细资料
				</view>
				<view class="btns-sub">
					身高、学历、月薪、体重一月只能修改一次
				</view>
			</button>
		</view>


	</view>
</template>

<script>
	export default {
		data() {
			return {
				form: {
					nick_name: "",
					sex: "",
					birthday: "",
					native_city_id: "",
					nation: "",
					height: "",
					weight: "",
					twelve_animal: "",
					constellation: "",
					blood: "",
					education: "",
					work_type: "",
					salary: "",
					home_city_id: "",
					home_country_id: "",
					home_country: "",
					resident_city_id: "",
					marrage: "",
					children: "",
					children_with: ""
				},
				customStyle: {
					width: "654rpx",
					height: "84rpx",
					border: "2rpx solid #E9E9E9",
					padding: "0rpx",
					marginTop: "32rpx",
					paddingRight: "28rpx",
					paddingLeft: "28rpx",
					boxSizing: "border-box"
				}
			}
		},
		methods: {
			toEdu() {
				uni.navigateTo({
					url: '/pages/education/index'
				})
			}
		}
	}
</script>

<style lang="scss" scoped>
	.container {
		height: 100%;

		.basic-title {
			margin-top: 228rpx;
			margin-left: 48rpx;
			width: 566rpx;
			height: 112rpx;
			font-size: 40rpx;
			font-family: PingFangSC, PingFang SC;
			font-weight: 600;
			color: #5861C0;
		}

		.basic-form {
			padding-bottom: 100rpx;
			padding-left: 48rpx;
			padding-right: 48rpx;
			width: 750rpx;
			box-sizing: border-box;

			// background-color: red;
			.form-title {
				margin-top: 62rpx;
				width: 134rpx;
				height: 44rpx;
				font-size: 32rpx;
				font-family: PingFangSC, PingFang SC;
				font-weight: 600;
				color: #333333;
			}

			.basic-btns {
				width: 654rpx;
				height: 138rpx;
				background: linear-gradient(90deg, #EC8D7E 0%, #FF6F59 100%);
				box-shadow: 0rpx 4rpx 34rpx -4rpx #DBABA4, inset 0rpx 2rpx 20rpx 6rpx rgba(255, 174, 161, 0.61);
				border-radius: 150rpx;
				opacity: 0.5;
				padding-top: 12rpx;
				position: fixed;
				top: 50%;
				left: 48rpx;
				// display: flex;
				// align-items: center;
				// justify-content: center;

				.btns-title {
					// width: 654rpx;
					height: 44rpx;
					font-size: 32rpx;
					font-family: PingFangSC, PingFang SC;
					font-weight: 500;
					color: #FFFFFF;
					display: flex;
					justify-content: center;
				}

				.btns-sub {
					height: 34rpx;
					// width: 654rpx;
					font-size: 24rpx;
					font-family: PingFangSC, PingFang SC;
					font-weight: 400;
					color: #FFFFFF;
					margin-top: 10rpx;
				}
			}
		}
	}
</style>